package org.jeecg.basic.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 班次配置
 * @Author: LiCY
 * @Date: 2023-06-16
 * @Version: V1.0
 */
@Data
@TableName("mes_shift_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mes_shift_cfg对象", description = "班次配置")
public class MesShiftCfg implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 班次配置ID
     */
    @ApiModelProperty(value = "班次配置ID")
    @Excel(name = "班次配置ID", width = 15)
    @MppMultiId
    @TableField(value = "id")
    private String id;
    /**
     * 班次名称
     */
    @Excel(name = "班次名称", width = 15)
    @ApiModelProperty(value = "班次名称")
    @MppMultiId
    @TableField(value = "name")
    private String name;
    /**
     * 开始时间
     */
    @Excel(name = "开始时间", width = 15)
    @ApiModelProperty(value = "开始时间")
    private BigDecimal startHour;
    /**
     * 班次时长
     */
    @Excel(name = "班次时长", width = 15)
    @ApiModelProperty(value = "班次时长")
    private BigDecimal hours;
    /**
     * 班次的顺序
     */
    @Excel(name = "班次的顺序", width = 15)
    @ApiModelProperty(value = "班次的顺序")
    private BigDecimal sequence;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15, dicCode = "MesShiftCfgList_status")
    @Dict(dicCode = "MesShiftCfgList_status")
    @ApiModelProperty(value = "状态")
    private String status;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
